.class public Les/r80;
.super Ljava/lang/Object;
.source "OldFtpFileSystem.java"

# interfaces
.implements Les/o80;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/r80$c;,
        Les/r80$d;,
        Les/r80$b;,
        Les/r80$e;
    }
.end annotation


# static fields
.field private static b:Z

.field private static c:Les/r80;

.field private static d:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/util/ArrayList<",
            "Les/r80$e;",
            ">;>;"
        }
    .end annotation
.end field


# instance fields
.field private a:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Lcom/estrongs/android/util/TypedMap;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Les/r80;->d:Ljava/util/HashMap;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Les/r80;->a:Ljava/util/HashMap;

    return-void
.end method

.method static synthetic a(Ljava/lang/String;Les/r80$e;)V
    .locals 0

    .line 2
    invoke-static {p0, p1}, Les/r80;->b(Ljava/lang/String;Les/r80$e;)V

    return-void
.end method

.method private a(Lorg/apache/commons/net/ftp/FTPClient;)V
    .locals 0

    if-nez p1, :cond_0

    return-void

    .line 249
    :cond_0
    :try_start_0
    invoke-virtual {p1}, Lorg/apache/commons/net/ftp/FTPClient;->logout()Z

    .line 250
    invoke-virtual {p1}, Lorg/apache/commons/net/ftp/FTPClient;->disconnect()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method static synthetic a()Z
    .locals 1

    .line 1
    sget-boolean v0, Les/r80;->b:Z

    return v0
.end method

.method private a(Lorg/apache/commons/net/ftp/FTPClient;Ljava/lang/String;)Z
    .locals 17
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    move-object/from16 v1, p0

    move-object/from16 v0, p1

    move-object/from16 v2, p2

    const-string v3, "."

    .line 138
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v4

    .line 139
    :try_start_0
    invoke-virtual/range {p1 .. p2}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 140
    invoke-virtual {v0, v3}, Lorg/apache/commons/net/ftp/FTPClient;->listFiles(Ljava/lang/String;)[Lorg/apache/commons/net/ftp/FTPFile;

    move-result-object v5

    const/4 v6, 0x0

    const/4 v7, 0x1

    if-eqz v5, :cond_0

    .line 141
    array-length v8, v5

    if-eqz v8, :cond_0

    array-length v8, v5

    if-ne v8, v7, :cond_1

    aget-object v8, v5, v6

    .line 142
    invoke-virtual {v8}, Lorg/apache/commons/net/ftp/FTPFile;->getName()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v8, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 143
    :cond_0
    invoke-virtual/range {p1 .. p1}, Lorg/apache/commons/net/ftp/FTPClient;->listFiles()[Lorg/apache/commons/net/ftp/FTPFile;

    move-result-object v5
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_1
    const-string v3, "ftp://"

    const-wide/16 v8, 0x1

    const/4 v10, 0x2

    if-eqz v5, :cond_7

    .line 144
    :try_start_1
    array-length v11, v5

    const/4 v12, 0x0

    :goto_0
    if-ge v12, v11, :cond_7

    aget-object v13, v5, v12

    if-eqz v4, :cond_2

    .line 145
    invoke-virtual {v4}, Les/s80;->z()Z

    move-result v14

    if-eqz v14, :cond_2

    return v6

    .line 146
    :cond_2
    invoke-virtual {v13}, Lorg/apache/commons/net/ftp/FTPFile;->getName()Ljava/lang/String;

    move-result-object v14

    invoke-direct {v1, v14}, Les/r80;->m(Ljava/lang/String;)Z

    move-result v14

    if-eqz v14, :cond_3

    goto :goto_2

    .line 147
    :cond_3
    new-instance v14, Ljava/lang/StringBuilder;

    invoke-direct {v14}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v14, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v13}, Lorg/apache/commons/net/ftp/FTPFile;->getName()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    .line 148
    invoke-virtual {v13}, Lorg/apache/commons/net/ftp/FTPFile;->isDirectory()Z

    move-result v13

    if-eqz v13, :cond_4

    .line 149
    new-instance v13, Ljava/lang/StringBuilder;

    invoke-direct {v13}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v13, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v14, "/"

    invoke-virtual {v13, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    .line 150
    invoke-direct {v1, v0, v13}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;Ljava/lang/String;)Z

    move-result v13

    goto :goto_1

    .line 151
    :cond_4
    invoke-virtual {v0, v14}, Lorg/apache/commons/net/ftp/FTPClient;->deleteFile(Ljava/lang/String;)Z

    move-result v13

    if-eqz v4, :cond_5

    new-array v15, v10, [Ljava/lang/Object;

    .line 152
    invoke-static {v8, v9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v16

    aput-object v16, v15, v6

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v8, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    aput-object v8, v15, v7

    invoke-virtual {v4, v7, v15}, Les/s80;->b(I[Ljava/lang/Object;)V

    :cond_5
    :goto_1
    if-nez v13, :cond_6

    return v6

    :cond_6
    :goto_2
    add-int/lit8 v12, v12, 0x1

    const-wide/16 v8, 0x1

    goto :goto_0

    :cond_7
    if-eqz v5, :cond_9

    .line 153
    invoke-virtual/range {p1 .. p2}, Lorg/apache/commons/net/ftp/FTPClient;->removeDirectory(Ljava/lang/String;)Z

    move-result v0

    if-eqz v4, :cond_8

    new-array v5, v10, [Ljava/lang/Object;

    const-wide/16 v8, 0x1

    .line 154
    invoke-static {v8, v9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v8

    aput-object v8, v5, v6

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    aput-object v2, v5, v7

    invoke-virtual {v4, v7, v5}, Les/s80;->b(I[Ljava/lang/Object;)V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0

    :cond_8
    move v7, v0

    :cond_9
    return v7

    :catch_0
    move-exception v0

    .line 155
    new-instance v2, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v2, v0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    goto :goto_4

    :goto_3
    throw v2

    :goto_4
    goto :goto_3
.end method

.method public static b()Les/o80;
    .locals 1

    .line 1
    sget-object v0, Les/r80;->c:Les/r80;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Les/r80;

    invoke-direct {v0}, Les/r80;-><init>()V

    sput-object v0, Les/r80;->c:Les/r80;

    .line 3
    :cond_0
    sget-object v0, Les/r80;->c:Les/r80;

    return-object v0
.end method

.method private static b(Ljava/lang/String;Les/r80$e;)V
    .locals 2

    .line 4
    sget-object v0, Les/r80;->d:Ljava/util/HashMap;

    monitor-enter v0

    .line 5
    :try_start_0
    sget-object v1, Les/r80;->d:Ljava/util/HashMap;

    invoke-virtual {v1, p0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/ArrayList;

    if-eqz v1, :cond_0

    .line 6
    monitor-enter v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 7
    :try_start_1
    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 8
    monitor-exit v1

    goto :goto_0

    :catchall_0
    move-exception p0

    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    throw p0

    .line 9
    :cond_0
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 10
    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 11
    sget-object p1, Les/r80;->d:Ljava/util/HashMap;

    invoke-virtual {p1, p0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 12
    :goto_0
    monitor-exit v0

    return-void

    :catchall_1
    move-exception p0

    monitor-exit v0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    throw p0
.end method

.method public static c()V
    .locals 1

    const/4 v0, 0x0

    .line 1
    sput-boolean v0, Les/r80;->b:Z

    return-void
.end method

.method private l(Ljava/lang/String;)Z
    .locals 2

    .line 1
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    const/4 v1, 0x1

    sub-int/2addr v0, v1

    invoke-virtual {p1, v0}, Ljava/lang/String;->charAt(I)C

    move-result p1

    const/16 v0, 0x2f

    if-ne p1, v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    return v1
.end method

.method private m(Ljava/lang/String;)Z
    .locals 1

    if-eqz p1, :cond_0

    const-string v0, "."

    .line 1
    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    const-string v0, ".."

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    :cond_1
    const/4 p1, 0x1

    return p1

    :cond_2
    const/4 p1, 0x0

    return p1
.end method


# virtual methods
.method public a(Ljava/lang/String;J)Ljava/io/InputStream;
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 192
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 193
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const/4 v1, 0x0

    const/4 v2, 0x1

    .line 194
    :try_start_0
    invoke-virtual {p0, v0, v2}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v3
    :try_end_0
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_0 .. :try_end_0} :catch_3
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_2
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    if-nez v3, :cond_3

    if-eqz v3, :cond_0

    .line 195
    :try_start_1
    invoke-virtual {v3}, Lorg/apache/commons/net/ftp/FTPClient;->logout()Z

    .line 196
    invoke-virtual {v3}, Lorg/apache/commons/net/ftp/FTPClient;->disconnect()V

    .line 197
    :cond_0
    invoke-virtual {p0, v0, v2}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 198
    invoke-virtual {v0, p2, p3}, Lorg/apache/commons/net/ftp/FTPClient;->setRestartOffset(J)V

    .line 199
    invoke-virtual {v0, p1}, Lorg/apache/commons/net/ftp/FTPClient;->retrieveFileStream(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v2

    if-nez v2, :cond_1

    .line 200
    invoke-virtual {v0, p2, p3}, Lorg/apache/commons/net/ftp/FTPClient;->setRestartOffset(J)V

    .line 201
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v0, p2}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 202
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Lorg/apache/commons/net/ftp/FTPClient;->retrieveFileStream(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v2

    .line 203
    :cond_1
    new-instance p1, Les/q80;

    invoke-direct {p1, v2, v0}, Les/q80;-><init>(Ljava/io/InputStream;Lorg/apache/commons/net/ftp/FTPClient;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :catchall_0
    :cond_2
    return-object v1

    .line 204
    :cond_3
    :try_start_2
    invoke-virtual {v3, p2, p3}, Lorg/apache/commons/net/ftp/FTPClient;->setRestartOffset(J)V

    .line 205
    invoke-virtual {v3, v2}, Lorg/apache/commons/net/SocketClient;->setKeepAlive(Z)V

    const/4 v4, 0x0

    .line 206
    invoke-virtual {v3, v4}, Lorg/apache/commons/net/ftp/FTPClient;->setRemoteVerificationEnabled(Z)V

    const/16 v4, 0xa

    .line 207
    invoke-virtual {v3, v4}, Lorg/apache/commons/net/ftp/FTPClient;->setFileTransferMode(I)Z

    .line 208
    invoke-virtual {v3, p1}, Lorg/apache/commons/net/ftp/FTPClient;->retrieveFileStream(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v1

    if-nez v1, :cond_5

    .line 209
    invoke-virtual {v3, p2, p3}, Lorg/apache/commons/net/ftp/FTPClient;->setRestartOffset(J)V

    .line 210
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 211
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Lorg/apache/commons/net/ftp/FTPClient;->retrieveFileStream(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v1

    if-eqz v1, :cond_4

    goto :goto_0

    .line 212
    :cond_4
    new-instance v4, Ljava/io/IOException;

    const-string v5, "Ftp server response error"

    invoke-direct {v4, v5}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v4

    .line 213
    :cond_5
    :goto_0
    new-instance v4, Les/q80;

    invoke-direct {v4, v1, v3}, Les/q80;-><init>(Ljava/io/InputStream;Lorg/apache/commons/net/ftp/FTPClient;)V
    :try_end_2
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_2 .. :try_end_2} :catch_1
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_2

    goto/16 :goto_4

    :catch_0
    move-exception v4

    goto :goto_1

    :catch_1
    nop

    goto :goto_3

    :catchall_1
    move-exception v4

    move-object v3, v1

    goto :goto_2

    :catch_2
    move-exception v4

    move-object v3, v1

    .line 214
    :goto_1
    :try_start_3
    new-instance v5, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v5, v4}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v5
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_2

    :catchall_2
    move-exception v4

    :goto_2
    if-nez v1, :cond_8

    if-eqz v3, :cond_6

    .line 215
    :try_start_4
    invoke-virtual {v3}, Lorg/apache/commons/net/ftp/FTPClient;->logout()Z

    .line 216
    invoke-virtual {v3}, Lorg/apache/commons/net/ftp/FTPClient;->disconnect()V

    .line 217
    :cond_6
    invoke-virtual {p0, v0, v2}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v0

    if-eqz v0, :cond_8

    .line 218
    invoke-virtual {v0, p2, p3}, Lorg/apache/commons/net/ftp/FTPClient;->setRestartOffset(J)V

    .line 219
    invoke-virtual {v0, p1}, Lorg/apache/commons/net/ftp/FTPClient;->retrieveFileStream(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v1

    if-nez v1, :cond_7

    .line 220
    invoke-virtual {v0, p2, p3}, Lorg/apache/commons/net/ftp/FTPClient;->setRestartOffset(J)V

    .line 221
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v0, p2}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 222
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Lorg/apache/commons/net/ftp/FTPClient;->retrieveFileStream(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v1

    .line 223
    :cond_7
    new-instance p1, Les/q80;

    invoke-direct {p1, v1, v0}, Les/q80;-><init>(Ljava/io/InputStream;Lorg/apache/commons/net/ftp/FTPClient;)V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_3

    .line 224
    :catchall_3
    :cond_8
    throw v4

    :catch_3
    move-object v3, v1

    :goto_3
    if-nez v1, :cond_b

    if-eqz v3, :cond_9

    .line 225
    :try_start_5
    invoke-virtual {v3}, Lorg/apache/commons/net/ftp/FTPClient;->logout()Z

    .line 226
    invoke-virtual {v3}, Lorg/apache/commons/net/ftp/FTPClient;->disconnect()V

    .line 227
    :cond_9
    invoke-virtual {p0, v0, v2}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v0

    if-eqz v0, :cond_b

    .line 228
    invoke-virtual {v0, p2, p3}, Lorg/apache/commons/net/ftp/FTPClient;->setRestartOffset(J)V

    .line 229
    invoke-virtual {v0, p1}, Lorg/apache/commons/net/ftp/FTPClient;->retrieveFileStream(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v1

    if-nez v1, :cond_a

    .line 230
    invoke-virtual {v0, p2, p3}, Lorg/apache/commons/net/ftp/FTPClient;->setRestartOffset(J)V

    .line 231
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v0, p2}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 232
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Lorg/apache/commons/net/ftp/FTPClient;->retrieveFileStream(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v1

    .line 233
    :cond_a
    new-instance p1, Les/q80;

    invoke-direct {p1, v1, v0}, Les/q80;-><init>(Ljava/io/InputStream;Lorg/apache/commons/net/ftp/FTPClient;)V
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_4

    move-object v4, p1

    goto :goto_4

    :catchall_4
    :cond_b
    move-object v4, v1

    :goto_4
    return-object v4
.end method

.method public a(Ljava/lang/String;Lcom/estrongs/fs/h;)Ljava/util/List;
    .locals 18
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Lcom/estrongs/fs/h;",
            ")",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    move-object/from16 v1, p0

    move-object/from16 v0, p2

    const-string v2, "."

    const-string v3, "/"

    .line 95
    new-instance v4, Ljava/util/LinkedList;

    invoke-direct {v4}, Ljava/util/LinkedList;-><init>()V

    .line 96
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v5

    .line 97
    :try_start_0
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    const/4 v8, 0x1

    .line 98
    invoke-virtual {v1, v7, v8}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v7
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    if-eqz v7, :cond_13

    if-eqz v5, :cond_1

    .line 99
    :try_start_1
    invoke-virtual {v5}, Les/s80;->z()Z

    move-result v9
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz v9, :cond_1

    if-eqz v7, :cond_0

    .line 100
    invoke-direct {v1, v7}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_0
    return-object v4

    .line 101
    :cond_1
    :try_start_2
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 102
    invoke-virtual {v7, v9}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 103
    invoke-virtual {v7}, Lorg/apache/commons/net/ftp/FTP;->getReplyCode()I

    move-result v9

    const/16 v10, 0x226

    if-eq v9, v10, :cond_12

    .line 104
    invoke-virtual {v7, v2}, Lorg/apache/commons/net/ftp/FTPClient;->initiateListParsing(Ljava/lang/String;)Lorg/apache/commons/net/ftp/FTPListParseEngine;

    move-result-object v9

    .line 105
    invoke-virtual {v9}, Lorg/apache/commons/net/ftp/FTPListParseEngine;->getFiles()[Lorg/apache/commons/net/ftp/FTPFile;

    move-result-object v9

    const/4 v10, 0x0

    if-eqz v9, :cond_2

    .line 106
    array-length v11, v9

    if-eqz v11, :cond_2

    array-length v11, v9

    if-ne v11, v8, :cond_3

    aget-object v11, v9, v10

    .line 107
    invoke-virtual {v11}, Lorg/apache/commons/net/ftp/FTPFile;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v11, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v11

    if-eqz v11, :cond_3

    .line 108
    :cond_2
    invoke-virtual {v7}, Lorg/apache/commons/net/ftp/FTPClient;->listFiles()[Lorg/apache/commons/net/ftp/FTPFile;

    move-result-object v9

    .line 109
    :cond_3
    iget-object v11, v1, Les/r80;->a:Ljava/util/HashMap;

    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Lcom/estrongs/android/util/TypedMap;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    const-string v12, "UTF-8"

    if-eqz v11, :cond_4

    :try_start_3
    const-string v13, "encode"

    .line 110
    invoke-virtual {v11, v13, v12}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    goto :goto_0

    :cond_4
    move-object v13, v12

    .line 111
    :goto_0
    sget-object v14, Lcom/estrongs/android/util/f;->a:[Ljava/lang/String;

    aget-object v14, v14, v10

    invoke-virtual {v14, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-eqz v13, :cond_5

    invoke-virtual {v7}, Lorg/apache/commons/net/ftp/FTP;->getControlEncoding()Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-nez v12, :cond_5

    const-string v12, "detectedEncoding"

    .line 112
    invoke-virtual {v7}, Lorg/apache/commons/net/ftp/FTP;->getControlEncoding()Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v11, v12, v13}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    :cond_5
    if-eqz v9, :cond_10

    .line 113
    array-length v11, v9

    move-object/from16 v12, p1

    const/4 v13, 0x0

    :goto_1
    if-ge v13, v11, :cond_10

    aget-object v14, v9, v13

    if-eqz v5, :cond_7

    .line 114
    invoke-virtual {v5}, Les/s80;->z()Z

    move-result v15
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    if-eqz v15, :cond_7

    if-eqz v7, :cond_6

    .line 115
    invoke-direct {v1, v7}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_6
    return-object v4

    :cond_7
    if-nez v14, :cond_8

    goto/16 :goto_4

    .line 116
    :cond_8
    :try_start_4
    invoke-virtual {v12, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v15

    if-nez v15, :cond_9

    .line 117
    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v15, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v15, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    .line 118
    :cond_9
    invoke-virtual {v14}, Lorg/apache/commons/net/ftp/FTPFile;->getName()Ljava/lang/String;

    move-result-object v15

    if-eqz v15, :cond_f

    .line 119
    invoke-virtual {v15, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v16

    if-nez v16, :cond_f

    const-string v6, ".."

    invoke-virtual {v15, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_a

    goto/16 :goto_4

    .line 120
    :cond_a
    invoke-virtual {v14}, Lorg/apache/commons/net/ftp/FTPFile;->isDirectory()Z

    move-result v6

    if-eqz v6, :cond_b

    invoke-virtual {v15, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v6

    if-nez v6, :cond_b

    .line 121
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    .line 122
    :cond_b
    invoke-virtual {v14}, Lorg/apache/commons/net/ftp/FTPFile;->isSymbolicLink()Z

    move-result v6

    if-eqz v6, :cond_e

    .line 123
    invoke-virtual {v14}, Lorg/apache/commons/net/ftp/FTPFile;->getLink()Ljava/lang/String;

    move-result-object v6

    if-eqz v6, :cond_c

    .line 124
    invoke-virtual {v6, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v17

    if-eqz v17, :cond_c

    .line 125
    invoke-virtual {v14, v8}, Lorg/apache/commons/net/ftp/FTPFile;->setType(I)V

    goto :goto_3

    .line 126
    :cond_c
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v8, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v8}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 127
    invoke-virtual {v7, v8}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_d

    const/4 v8, 0x1

    goto :goto_2

    :cond_d
    const/4 v8, 0x0

    .line 128
    :goto_2
    invoke-virtual {v14, v8}, Lorg/apache/commons/net/ftp/FTPFile;->setType(I)V

    goto :goto_3

    :cond_e
    const/4 v6, 0x0

    .line 129
    :goto_3
    new-instance v8, Les/p80;

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v10, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-direct {v8, v14, v10, v6}, Les/p80;-><init>(Lorg/apache/commons/net/ftp/FTPFile;Ljava/lang/String;Ljava/lang/String;)V

    if-eqz v0, :cond_f

    .line 130
    invoke-interface {v0, v8}, Lcom/estrongs/fs/h;->a(Lcom/estrongs/fs/g;)Z

    move-result v6

    if-eqz v6, :cond_f

    .line 131
    invoke-interface {v4, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    :cond_f
    :goto_4
    add-int/lit8 v13, v13, 0x1

    const/4 v8, 0x1

    const/4 v10, 0x0

    goto/16 :goto_1

    :cond_10
    if-eqz v7, :cond_11

    .line 132
    invoke-direct {v1, v7}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_11
    return-object v4

    .line 133
    :cond_12
    :try_start_5
    new-instance v0, Ljava/io/IOException;

    const-string v2, "550"

    invoke-direct {v0, v2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 134
    :cond_13
    new-instance v0, Lcom/estrongs/android/exception/GeneralException;

    sget-object v2, Lcom/estrongs/android/exception/GeneralException$ERROR_CODE;->ERROR_AUTHORIZATION:Lcom/estrongs/android/exception/GeneralException$ERROR_CODE;

    invoke-direct {v0, v2}, Lcom/estrongs/android/exception/GeneralException;-><init>(Lcom/estrongs/android/exception/GeneralException$ERROR_CODE;)V

    throw v0
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    :catchall_0
    move-exception v0

    move-object v6, v7

    goto :goto_5

    :catchall_1
    move-exception v0

    const/4 v6, 0x0

    .line 135
    :goto_5
    :try_start_6
    new-instance v2, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v2, v0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v2
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_2

    :catchall_2
    move-exception v0

    if-eqz v6, :cond_14

    .line 136
    invoke-direct {v1, v6}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    .line 137
    :cond_14
    goto :goto_7

    :goto_6
    throw v0

    :goto_7
    goto :goto_6
.end method

.method public a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;
    .locals 16
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 3
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->m0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 4
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->N(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 5
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 6
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->E(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 7
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->C(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    move-object/from16 v5, p0

    .line 8
    iget-object v6, v5, Les/r80;->a:Ljava/util/HashMap;

    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/estrongs/android/util/TypedMap;

    const/4 v7, 0x1

    const-string v8, "UTF-8"

    if-eqz v6, :cond_0

    const-string v9, "mode"

    .line 9
    invoke-virtual {v6, v9, v7}, Lcom/estrongs/android/util/TypedMap;->getBoolean(Ljava/lang/String;Z)Z

    move-result v9

    const-string v10, "encode"

    .line 10
    invoke-virtual {v6, v10, v8}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    goto :goto_0

    :cond_0
    const/4 v9, 0x1

    .line 11
    :goto_0
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->m2(Ljava/lang/String;)Z

    move-result v10

    if-nez v3, :cond_2

    if-eqz v10, :cond_1

    const-string v3, "990"

    goto :goto_1

    :cond_1
    const-string v3, "21"

    .line 12
    :cond_2
    :goto_1
    :try_start_0
    sget-object v12, Les/r80;->d:Ljava/util/HashMap;

    monitor-enter v12
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_9

    .line 13
    :try_start_1
    sget-object v13, Les/r80;->d:Ljava/util/HashMap;

    new-instance v14, Ljava/lang/StringBuilder;

    invoke-direct {v14}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v14, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v15, "@"

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v14, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v15, "@"

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v14, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v14}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Ljava/util/ArrayList;

    if-nez v13, :cond_3

    .line 14
    new-instance v13, Ljava/util/ArrayList;

    invoke-direct {v13}, Ljava/util/ArrayList;-><init>()V

    .line 15
    sget-object v14, Les/r80;->d:Ljava/util/HashMap;

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v15, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v11, "@"

    invoke-virtual {v15, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v15, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v11, "@"

    invoke-virtual {v15, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v15, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v14, v11, v13}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 16
    :cond_3
    monitor-exit v12
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_2

    .line 17
    :goto_2
    :try_start_2
    invoke-virtual {v13}, Ljava/util/ArrayList;->size()I

    move-result v11
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_9

    const/4 v12, 0x0

    if-lez v11, :cond_b

    .line 18
    :try_start_3
    monitor-enter v13
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_3

    .line 19
    :try_start_4
    invoke-virtual {v13, v12}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Les/r80$e;
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    .line 20
    :try_start_5
    monitor-exit v13
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_1

    .line 21
    :try_start_6
    iget-object v14, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    invoke-virtual {v14}, Lorg/apache/commons/net/SocketClient;->isConnected()Z

    move-result v14

    if-eqz v14, :cond_8

    .line 22
    iget-object v14, v11, Les/r80$e;->b:Ljava/lang/String;

    invoke-virtual {v14, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v14

    if-nez v14, :cond_4

    .line 23
    iput-object v8, v11, Les/r80$e;->b:Ljava/lang/String;

    .line 24
    iget-object v14, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    invoke-virtual {v14, v8}, Lorg/apache/commons/net/ftp/FTP;->setControlEncoding(Ljava/lang/String;)V
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_6

    .line 25
    :cond_4
    :try_start_7
    iget-object v14, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    invoke-virtual {v14, v4}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 26
    sget-object v14, Lcom/estrongs/android/util/f;->a:[Ljava/lang/String;

    aget-object v14, v14, v12

    invoke-virtual {v14, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v14

    if-eqz v14, :cond_5

    const-string v14, "detectedEncoding"

    invoke-virtual {v6, v14}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    if-eqz v14, :cond_5

    iget-object v14, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    .line 27
    invoke-virtual {v14}, Lorg/apache/commons/net/ftp/FTP;->getControlEncoding()Ljava/lang/String;

    move-result-object v14

    const-string v15, "detectedEncoding"

    invoke-virtual {v6, v15}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v14

    if-nez v14, :cond_5

    .line 28
    iget-object v14, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    const-string v15, "detectedEncoding"

    invoke-virtual {v6, v15}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Lorg/apache/commons/net/ftp/FTP;->setControlEncoding(Ljava/lang/String;)V

    :cond_5
    if-eqz v9, :cond_6

    .line 29
    iget-boolean v14, v11, Les/r80$e;->c:Z

    if-nez v14, :cond_6

    .line 30
    iget-object v12, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    invoke-virtual {v12}, Lorg/apache/commons/net/ftp/FTPClient;->enterLocalPassiveMode()V

    .line 31
    iput-boolean v7, v11, Les/r80$e;->c:Z

    goto :goto_3

    :cond_6
    if-nez v9, :cond_7

    .line 32
    iget-boolean v14, v11, Les/r80$e;->c:Z

    if-eqz v14, :cond_7

    .line 33
    iget-object v14, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    invoke-virtual {v14}, Lorg/apache/commons/net/ftp/FTPClient;->enterLocalActiveMode()V

    .line 34
    iput-boolean v12, v11, Les/r80$e;->c:Z

    .line 35
    :cond_7
    :goto_3
    iget-object v0, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;
    :try_end_7
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_7 .. :try_end_7} :catch_0
    .catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_0
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_6

    return-object v0

    .line 36
    :catch_0
    :cond_8
    :try_start_8
    iget-object v12, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    instance-of v12, v12, Les/r80$b;

    if-eqz v12, :cond_9

    .line 37
    iget-object v12, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    check-cast v12, Les/r80$b;

    iput-boolean v7, v12, Les/r80$b;->c:Z

    goto :goto_4

    .line 38
    :cond_9
    iget-object v12, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    instance-of v12, v12, Les/r80$d;

    if-eqz v12, :cond_a

    .line 39
    iget-object v12, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    check-cast v12, Les/r80$d;

    iput-boolean v7, v12, Les/r80$d;->c:Z
    :try_end_8
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_6

    .line 40
    :cond_a
    :goto_4
    :try_start_9
    iget-object v12, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    invoke-virtual {v12}, Lorg/apache/commons/net/ftp/FTPClient;->logout()Z
    :try_end_9
    .catch Ljava/io/IOException; {:try_start_9 .. :try_end_9} :catch_1
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_6

    .line 41
    :catch_1
    :try_start_a
    iget-object v12, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    invoke-virtual {v12}, Lorg/apache/commons/net/ftp/FTPClient;->disconnect()V
    :try_end_a
    .catch Ljava/io/IOException; {:try_start_a .. :try_end_a} :catch_2
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_a} :catch_6

    :catch_2
    const/4 v12, 0x0

    .line 42
    :try_start_b
    iput-object v12, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;
    :try_end_b
    .catch Ljava/lang/Exception; {:try_start_b .. :try_end_b} :catch_6

    goto/16 :goto_2

    :catchall_0
    move-exception v0

    const/4 v11, 0x0

    .line 43
    :goto_5
    :try_start_c
    monitor-exit v13
    :try_end_c
    .catchall {:try_start_c .. :try_end_c} :catchall_1

    :try_start_d
    throw v0
    :try_end_d
    .catch Ljava/lang/Exception; {:try_start_d .. :try_end_d} :catch_6

    :catchall_1
    move-exception v0

    goto :goto_5

    :catch_3
    move-exception v0

    move-object v1, v0

    const/4 v11, 0x0

    goto/16 :goto_f

    .line 44
    :cond_b
    :try_start_e
    new-instance v11, Les/r80$e;
    :try_end_e
    .catch Ljava/lang/Exception; {:try_start_e .. :try_end_e} :catch_9

    const/4 v13, 0x0

    :try_start_f
    invoke-direct {v11, v13}, Les/r80$e;-><init>(Les/r80$a;)V
    :try_end_f
    .catch Ljava/lang/Exception; {:try_start_f .. :try_end_f} :catch_7

    if-eqz v10, :cond_c

    :try_start_10
    const-string v13, "ftps://"

    move-object/from16 v14, p1

    .line 45
    invoke-virtual {v14, v13}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v13

    .line 46
    new-instance v14, Les/r80$d;

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v15, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v12, "@"

    invoke-virtual {v15, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v15, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v12, "@"

    invoke-virtual {v15, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v15, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-direct {v14, v12, v11, v13}, Les/r80$d;-><init>(Ljava/lang/String;Les/r80$e;Z)V

    .line 47
    invoke-static {}, Lorg/apache/commons/net/util/TrustManagerUtils;->getAcceptAllTrustManager()Ljavax/net/ssl/X509TrustManager;

    move-result-object v12

    invoke-virtual {v14, v12}, Lorg/apache/commons/net/ftp/FTPSClient;->setTrustManager(Ljavax/net/ssl/TrustManager;)V

    .line 48
    invoke-virtual {v14, v7}, Lorg/apache/commons/net/ftp/FTPSClient;->setNeedClientAuth(Z)V

    goto :goto_6

    .line 49
    :cond_c
    new-instance v14, Les/r80$b;

    new-instance v12, Ljava/lang/StringBuilder;

    invoke-direct {v12}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v12, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v13, "@"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v12, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v13, "@"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v12, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-direct {v14, v12, v11}, Les/r80$b;-><init>(Ljava/lang/String;Les/r80$e;)V

    .line 50
    :goto_6
    invoke-virtual {v14, v7}, Lorg/apache/commons/net/ftp/FTPClient;->setListHiddenFiles(Z)V

    .line 51
    iput-object v14, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    .line 52
    iput-object v8, v11, Les/r80$e;->b:Ljava/lang/String;

    .line 53
    sget-object v12, Lcom/estrongs/android/util/f;->a:[Ljava/lang/String;

    const/4 v13, 0x0

    aget-object v12, v12, v13

    invoke-virtual {v12, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_d

    const-string v8, "detectedEncoding"

    invoke-virtual {v6, v8}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    if-eqz v8, :cond_d

    const-string v8, "detectedEncoding"

    .line 54
    invoke-virtual {v6, v8}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v11, Les/r80$e;->b:Ljava/lang/String;

    .line 55
    :cond_d
    iget-object v6, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    iget-object v8, v11, Les/r80$e;->b:Ljava/lang/String;

    invoke-virtual {v6, v8}, Lorg/apache/commons/net/ftp/FTP;->setControlEncoding(Ljava/lang/String;)V

    const v6, 0x9c40

    .line 56
    invoke-virtual {v14, v6}, Lorg/apache/commons/net/SocketClient;->setConnectTimeout(I)V
    :try_end_10
    .catch Ljava/lang/Exception; {:try_start_10 .. :try_end_10} :catch_6

    const/4 v8, -0x1

    if-eqz v3, :cond_e

    .line 57
    :try_start_11
    invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v3
    :try_end_11
    .catch Ljava/lang/NumberFormatException; {:try_start_11 .. :try_end_11} :catch_4
    .catch Ljava/lang/Exception; {:try_start_11 .. :try_end_11} :catch_6

    goto :goto_7

    :catch_4
    :cond_e
    const/4 v3, -0x1

    :goto_7
    if-eq v3, v8, :cond_f

    .line 58
    :try_start_12
    invoke-virtual {v14, v2, v3}, Lorg/apache/commons/net/SocketClient;->connect(Ljava/lang/String;I)V

    goto :goto_8

    .line 59
    :cond_f
    invoke-virtual {v14, v2}, Lorg/apache/commons/net/SocketClient;->connect(Ljava/lang/String;)V

    .line 60
    :goto_8
    invoke-virtual {v14}, Lorg/apache/commons/net/ftp/FTP;->getReplyCode()I

    move-result v2

    .line 61
    invoke-static {v2}, Lorg/apache/commons/net/ftp/FTPReply;->isPositiveCompletion(I)Z

    move-result v2

    if-nez v2, :cond_10

    .line 62
    invoke-virtual {v14}, Lorg/apache/commons/net/ftp/FTPClient;->disconnect()V
    :try_end_12
    .catch Ljava/lang/Exception; {:try_start_12 .. :try_end_12} :catch_6

    const/4 v1, 0x0

    return-object v1

    :cond_10
    if-eqz v10, :cond_11

    .line 63
    :try_start_13
    move-object v2, v14

    check-cast v2, Lorg/apache/commons/net/ftp/FTPSClient;

    const-wide/16 v12, 0x0

    invoke-virtual {v2, v12, v13}, Lorg/apache/commons/net/ftp/FTPSClient;->execPBSZ(J)V

    .line 64
    move-object v2, v14

    check-cast v2, Lorg/apache/commons/net/ftp/FTPSClient;

    const-string v3, "P"

    invoke-virtual {v2, v3}, Lorg/apache/commons/net/ftp/FTPSClient;->execPROT(Ljava/lang/String;)V
    :try_end_13
    .catch Ljava/lang/Exception; {:try_start_13 .. :try_end_13} :catch_5

    goto :goto_9

    :catch_5
    nop

    :cond_11
    :goto_9
    if-nez v0, :cond_12

    :try_start_14
    const-string v0, "anonymous"

    const-string v1, "es"

    .line 65
    :cond_12
    invoke-virtual {v14, v0, v1}, Lorg/apache/commons/net/ftp/FTPClient;->login(Ljava/lang/String;Ljava/lang/String;)Z

    .line 66
    invoke-virtual {v14}, Lorg/apache/commons/net/ftp/FTP;->getReplyCode()I

    move-result v0

    const/16 v1, 0x212

    if-eq v0, v1, :cond_18

    .line 67
    invoke-static {v0}, Lorg/apache/commons/net/ftp/FTPReply;->isPositiveCompletion(I)Z

    move-result v0

    if-nez v0, :cond_15

    .line 68
    instance-of v0, v14, Les/r80$b;

    if-eqz v0, :cond_13

    .line 69
    move-object v0, v14

    check-cast v0, Les/r80$b;

    iput-boolean v7, v0, Les/r80$b;->c:Z

    goto :goto_a

    .line 70
    :cond_13
    instance-of v0, v14, Les/r80$d;

    if-eqz v0, :cond_14

    .line 71
    move-object v0, v14

    check-cast v0, Les/r80$d;

    iput-boolean v7, v0, Les/r80$d;->c:Z

    .line 72
    :cond_14
    :goto_a
    invoke-virtual {v14}, Lorg/apache/commons/net/ftp/FTPClient;->logout()Z

    .line 73
    invoke-virtual {v14}, Lorg/apache/commons/net/ftp/FTPClient;->disconnect()V

    const/4 v1, 0x0

    return-object v1

    :cond_15
    if-eqz v4, :cond_16

    .line 74
    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v0

    if-le v0, v7, :cond_16

    .line 75
    invoke-virtual {v14, v4}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    :cond_16
    const/4 v0, 0x2

    .line 76
    invoke-virtual {v14, v0}, Lorg/apache/commons/net/ftp/FTPClient;->setFileType(I)Z

    if-eqz v9, :cond_17

    .line 77
    invoke-virtual {v14}, Lorg/apache/commons/net/ftp/FTPClient;->enterLocalPassiveMode()V

    .line 78
    iput-boolean v7, v11, Les/r80$e;->c:Z

    goto :goto_b

    .line 79
    :cond_17
    invoke-virtual {v14}, Lorg/apache/commons/net/ftp/FTPClient;->enterLocalActiveMode()V

    const/4 v0, 0x0

    .line 80
    iput-boolean v0, v11, Les/r80$e;->c:Z

    .line 81
    :goto_b
    invoke-virtual {v14, v6}, Lorg/apache/commons/net/SocketClient;->setDefaultTimeout(I)V

    .line 82
    iget-object v0, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    return-object v0

    .line 83
    :cond_18
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "530"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_14
    .catch Ljava/lang/Exception; {:try_start_14 .. :try_end_14} :catch_6

    :catch_6
    move-exception v0

    goto :goto_e

    :catch_7
    move-exception v0

    move-object v1, v13

    goto :goto_d

    :catchall_2
    move-exception v0

    const/4 v1, 0x0

    .line 84
    :goto_c
    :try_start_15
    monitor-exit v12
    :try_end_15
    .catchall {:try_start_15 .. :try_end_15} :catchall_3

    :try_start_16
    throw v0
    :try_end_16
    .catch Ljava/lang/Exception; {:try_start_16 .. :try_end_16} :catch_8

    :catch_8
    move-exception v0

    goto :goto_d

    :catchall_3
    move-exception v0

    goto :goto_c

    :catch_9
    move-exception v0

    const/4 v1, 0x0

    :goto_d
    move-object v11, v1

    :goto_e
    move-object v1, v0

    .line 85
    :goto_f
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    if-eqz v11, :cond_1b

    .line 86
    iget-object v0, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    if-eqz v0, :cond_1b

    .line 87
    :try_start_17
    instance-of v2, v0, Les/r80$b;

    if-nez v2, :cond_19

    .line 88
    instance-of v2, v0, Les/r80$d;

    if-eqz v2, :cond_1a

    .line 89
    check-cast v0, Les/r80$d;

    iput-boolean v7, v0, Les/r80$d;->c:Z

    goto :goto_10

    .line 90
    :cond_19
    check-cast v0, Les/r80$b;

    iput-boolean v7, v0, Les/r80$b;->c:Z

    .line 91
    :cond_1a
    :goto_10
    iget-object v0, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    invoke-virtual {v0}, Lorg/apache/commons/net/ftp/FTPClient;->logout()Z

    .line 92
    iget-object v0, v11, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    invoke-virtual {v0}, Lorg/apache/commons/net/ftp/FTPClient;->disconnect()V
    :try_end_17
    .catch Ljava/io/IOException; {:try_start_17 .. :try_end_17} :catch_a

    goto :goto_11

    :catch_a
    move-exception v0

    .line 93
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    .line 94
    :cond_1b
    :goto_11
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, v1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    goto :goto_13

    :goto_12
    throw v0

    :goto_13
    goto :goto_12
.end method

.method public a(Lcom/estrongs/android/util/TypedMap;)V
    .locals 4

    .line 234
    iget-object v0, p0, Les/r80;->a:Ljava/util/HashMap;

    const-string v1, "server"

    invoke-virtual {p1, v1}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/util/TypedMap;

    if-eqz v0, :cond_0

    const-string v2, "detectedEncoding"

    .line 235
    invoke-virtual {v0, v2}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_0

    .line 236
    invoke-virtual {v0, v2}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v2, v0}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    .line 237
    :cond_0
    iget-object v0, p0, Les/r80;->a:Ljava/util/HashMap;

    invoke-virtual {p1, v1}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-void
.end method

.method public a(Ljava/lang/String;Lcom/estrongs/fs/g;)V
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 238
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    .line 239
    invoke-virtual {p0, v1, v2}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v0
    :try_end_0
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v0, :cond_1

    if-eqz v0, :cond_0

    .line 240
    invoke-direct {p0, v0}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_0
    return-void

    .line 241
    :cond_1
    :try_start_1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 242
    new-instance v1, Ljava/text/SimpleDateFormat;

    const-string v2, "yyyyMMddHHmmss"

    invoke-direct {v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    const-string v2, "GMT"

    .line 243
    invoke-static {v2}, Ljava/util/TimeZone;->getTimeZone(Ljava/lang/String;)Ljava/util/TimeZone;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/text/DateFormat;->setTimeZone(Ljava/util/TimeZone;)V

    .line 244
    new-instance v2, Ljava/util/Date;

    invoke-interface {p2}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide v3

    invoke-direct {v2, v3, v4}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v1, v2}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v0, p1, p2}, Lorg/apache/commons/net/ftp/FTPClient;->setModificationTime(Ljava/lang/String;Ljava/lang/String;)Z
    :try_end_1
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz v0, :cond_3

    goto :goto_1

    :catchall_0
    move-exception p1

    goto :goto_0

    :catch_0
    move-exception p1

    .line 245
    :try_start_2
    new-instance p2, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p2, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p2
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :goto_0
    if-eqz v0, :cond_2

    .line 246
    invoke-direct {p0, v0}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    .line 247
    :cond_2
    throw p1

    :catch_1
    nop

    if-eqz v0, :cond_3

    .line 248
    :goto_1
    invoke-direct {p0, v0}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_3
    return-void
.end method

.method public a(Ljava/lang/String;)Z
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 156
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    .line 157
    invoke-virtual {p0, v1, v2}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v0
    :try_end_0
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v0, :cond_1

    const/4 p1, 0x0

    if-eqz v0, :cond_0

    .line 158
    invoke-direct {p0, v0}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_0
    return p1

    .line 159
    :cond_1
    :try_start_1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 160
    invoke-virtual {v0, p1}, Lorg/apache/commons/net/ftp/FTPClient;->makeDirectory(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_2

    .line 161
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 162
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Lorg/apache/commons/net/ftp/FTPClient;->makeDirectory(Ljava/lang/String;)Z

    move-result v1
    :try_end_1
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :cond_2
    if-eqz v0, :cond_3

    .line 163
    invoke-direct {p0, v0}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_3
    return v1

    :catchall_0
    move-exception p1

    goto :goto_0

    :catch_0
    move-exception p1

    .line 164
    :try_start_2
    new-instance v1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v1, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v1

    :catch_1
    move-exception p1

    .line 165
    new-instance v1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v1, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :goto_0
    if-eqz v0, :cond_4

    .line 166
    invoke-direct {p0, v0}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    .line 167
    :cond_4
    throw p1
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 8
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 168
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x1

    .line 169
    invoke-virtual {p0, v2, v3}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v1
    :try_end_0
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v1, :cond_1

    if-eqz v1, :cond_0

    .line 170
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_0
    return v0

    .line 171
    :cond_1
    :try_start_1
    invoke-direct {p0, p1}, Les/r80;->l(Ljava/lang/String;)Z

    move-result v2

    .line 172
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1
    :try_end_1
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    const-string v4, "/"

    if-eqz v2, :cond_2

    .line 173
    :try_start_2
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    goto :goto_0

    :cond_2
    move-object v5, p2

    :goto_0
    invoke-static {v5}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    if-eqz v2, :cond_4

    .line 174
    invoke-virtual {v1, v5}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_3

    goto :goto_1

    :cond_3
    const/4 v3, 0x0

    goto :goto_1

    .line 175
    :cond_4
    invoke-virtual {v1, v5}, Lorg/apache/commons/net/ftp/FTPClient;->listFiles(Ljava/lang/String;)[Lorg/apache/commons/net/ftp/FTPFile;

    move-result-object v6

    if-eqz v6, :cond_3

    .line 176
    array-length v6, v6

    if-lez v6, :cond_3

    :goto_1
    if-eqz v3, :cond_8

    .line 177
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    .line 178
    invoke-static {p2}, Lcom/estrongs/android/util/h0;->A(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v3, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 179
    invoke-static {p2}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 180
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v6

    long-to-int p2, v6

    invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    if-eqz v2, :cond_5

    goto :goto_2

    :cond_5
    const-string v4, ""

    :goto_2
    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .line 181
    invoke-static {p2}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    .line 182
    invoke-virtual {v1, p1, p2}, Lorg/apache/commons/net/ftp/FTPClient;->rename(Ljava/lang/String;Ljava/lang/String;)Z

    if-eqz v2, :cond_6

    .line 183
    invoke-direct {p0, v1, v5}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;Ljava/lang/String;)Z

    goto :goto_3

    .line 184
    :cond_6
    invoke-virtual {p0, v5}, Les/r80;->g(Ljava/lang/String;)Z

    .line 185
    :goto_3
    invoke-virtual {v1, p2, v5}, Lorg/apache/commons/net/ftp/FTPClient;->rename(Ljava/lang/String;Ljava/lang/String;)Z

    move-result p1
    :try_end_2
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_2 .. :try_end_2} :catch_1
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    if-eqz v1, :cond_7

    .line 186
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_7
    return p1

    .line 187
    :cond_8
    :try_start_3
    invoke-virtual {v1, p1, v5}, Lorg/apache/commons/net/ftp/FTPClient;->rename(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0
    :try_end_3
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_3 .. :try_end_3} :catch_1
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    if-eqz v1, :cond_a

    .line 188
    :goto_4
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    goto :goto_6

    :catchall_0
    move-exception p1

    goto :goto_5

    :catch_0
    move-exception p1

    .line 189
    :try_start_4
    new-instance p2, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p2, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p2
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    :goto_5
    if-eqz v1, :cond_9

    .line 190
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    .line 191
    :cond_9
    throw p1

    :catch_1
    nop

    if-eqz v1, :cond_a

    goto :goto_4

    :cond_a
    :goto_6
    return v0
.end method

.method public b(Ljava/lang/String;)Z
    .locals 3

    const-wide/16 v0, 0x1

    const/4 v2, 0x0

    .line 13
    :try_start_0
    invoke-virtual {p0, p1, v0, v1}, Les/r80;->a(Ljava/lang/String;J)Ljava/io/InputStream;

    move-result-object p1
    :try_end_0
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz p1, :cond_0

    const/4 v2, 0x1

    :cond_0
    if-eqz p1, :cond_1

    .line 14
    :try_start_1
    invoke-virtual {p1}, Ljava/io/InputStream;->close()V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 15
    invoke-virtual {p1}, Ljava/io/IOException;->printStackTrace()V

    :cond_1
    :goto_0
    return v2

    :catchall_0
    move-exception p1

    .line 16
    throw p1

    :catch_1
    return v2
.end method

.method public c(Ljava/lang/String;)Ljava/io/OutputStream;
    .locals 7
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 2
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 3
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const/4 v1, 0x0

    const/4 v2, 0x1

    .line 4
    :try_start_0
    invoke-virtual {p0, v0, v2}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v3
    :try_end_0
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_0 .. :try_end_0} :catch_9
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_7
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    if-nez v3, :cond_2

    if-eqz v3, :cond_0

    .line 5
    :try_start_1
    invoke-virtual {v3}, Lorg/apache/commons/net/ftp/FTPClient;->logout()Z

    .line 6
    invoke-virtual {v3}, Lorg/apache/commons/net/ftp/FTPClient;->disconnect()V

    .line 7
    :cond_0
    invoke-virtual {p0, v0, v2}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 8
    invoke-virtual {v0, p1}, Lorg/apache/commons/net/ftp/FTPClient;->storeFileStream(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object v2

    if-nez v2, :cond_1

    .line 9
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 10
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Lorg/apache/commons/net/ftp/FTPClient;->storeFileStream(Ljava/lang/String;)Ljava/io/OutputStream;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    :cond_1
    return-object v1

    .line 11
    :cond_2
    :try_start_2
    invoke-virtual {v3, p1}, Lorg/apache/commons/net/ftp/FTPClient;->storeFileStream(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object v4
    :try_end_2
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_2 .. :try_end_2} :catch_6
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_5
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    if-nez v4, :cond_3

    .line 12
    :try_start_3
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 13
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Lorg/apache/commons/net/ftp/FTPClient;->storeFileStream(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object v4
    :try_end_3
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_3 .. :try_end_3} :catch_2
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1
    .catchall {:try_start_3 .. :try_end_3} :catchall_2

    goto :goto_0

    :catch_1
    move-exception v1

    goto :goto_2

    :catch_2
    nop

    goto/16 :goto_4

    :cond_3
    :goto_0
    if-nez v4, :cond_9

    if-eqz v3, :cond_4

    .line 14
    :try_start_4
    invoke-virtual {v3}, Lorg/apache/commons/net/ftp/FTPClient;->logout()Z

    .line 15
    invoke-virtual {v3}, Lorg/apache/commons/net/ftp/FTPClient;->disconnect()V

    .line 16
    :cond_4
    invoke-virtual {p0, v0, v2}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v3

    if-eqz v3, :cond_9

    .line 17
    invoke-virtual {v3, p1}, Lorg/apache/commons/net/ftp/FTPClient;->storeFileStream(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object v0
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_4

    if-nez v0, :cond_5

    .line 18
    :try_start_5
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 19
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    :goto_1
    invoke-virtual {v3, p1}, Lorg/apache/commons/net/ftp/FTPClient;->storeFileStream(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object p1
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_3

    move-object v4, p1

    goto/16 :goto_5

    :catch_3
    :cond_5
    move-object v4, v0

    goto/16 :goto_5

    :catch_4
    nop

    goto/16 :goto_5

    :catchall_0
    move-exception v4

    move-object v6, v4

    move-object v4, v1

    move-object v1, v6

    goto :goto_3

    :catch_5
    move-exception v4

    move-object v6, v4

    move-object v4, v1

    move-object v1, v6

    goto :goto_2

    :catch_6
    move-object v4, v1

    goto :goto_4

    :catchall_1
    move-exception v3

    move-object v4, v1

    move-object v1, v3

    move-object v3, v4

    goto :goto_3

    :catch_7
    move-exception v3

    move-object v4, v1

    move-object v1, v3

    move-object v3, v4

    .line 20
    :goto_2
    :try_start_6
    new-instance v5, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v5, v1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v5
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_2

    :catchall_2
    move-exception v1

    :goto_3
    if-nez v4, :cond_7

    if-eqz v3, :cond_6

    .line 21
    :try_start_7
    invoke-virtual {v3}, Lorg/apache/commons/net/ftp/FTPClient;->logout()Z

    .line 22
    invoke-virtual {v3}, Lorg/apache/commons/net/ftp/FTPClient;->disconnect()V

    .line 23
    :cond_6
    invoke-virtual {p0, v0, v2}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v0

    if-eqz v0, :cond_7

    .line 24
    invoke-virtual {v0, p1}, Lorg/apache/commons/net/ftp/FTPClient;->storeFileStream(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object v2

    if-nez v2, :cond_7

    .line 25
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 26
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Lorg/apache/commons/net/ftp/FTPClient;->storeFileStream(Ljava/lang/String;)Ljava/io/OutputStream;
    :try_end_7
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_8

    .line 27
    :catch_8
    :cond_7
    throw v1

    :catch_9
    move-object v3, v1

    move-object v4, v3

    :goto_4
    if-nez v4, :cond_9

    if-eqz v3, :cond_8

    .line 28
    :try_start_8
    invoke-virtual {v3}, Lorg/apache/commons/net/ftp/FTPClient;->logout()Z

    .line 29
    invoke-virtual {v3}, Lorg/apache/commons/net/ftp/FTPClient;->disconnect()V

    .line 30
    :cond_8
    invoke-virtual {p0, v0, v2}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v3

    if-eqz v3, :cond_9

    .line 31
    invoke-virtual {v3, p1}, Lorg/apache/commons/net/ftp/FTPClient;->storeFileStream(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object v0
    :try_end_8
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_4

    if-nez v0, :cond_5

    .line 32
    :try_start_9
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 33
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1
    :try_end_9
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_3

    goto :goto_1

    :cond_9
    :goto_5
    if-eqz v4, :cond_a

    .line 34
    new-instance p1, Les/r80$c;

    invoke-direct {p1, v4, v3}, Les/r80$c;-><init>(Ljava/io/OutputStream;Lorg/apache/commons/net/ftp/FTPClient;)V

    return-object p1

    :cond_a
    return-object v1
.end method

.method public d(Ljava/lang/String;)Lcom/estrongs/fs/e;
    .locals 13
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    .line 2
    invoke-virtual {p0, v1, v2}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v1
    :try_end_0
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_0 .. :try_end_0} :catch_4
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_3
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    if-nez v1, :cond_1

    if-eqz v1, :cond_0

    .line 3
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_0
    return-object v0

    .line 4
    :cond_1
    :try_start_1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3
    :try_end_1
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_1 .. :try_end_1} :catch_2
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    const/4 v4, 0x0

    move-object v6, v3

    const/4 v5, 0x0

    :goto_0
    const-string v7, "File"

    const-string v8, "\\ "

    const/4 v9, 0x2

    const-string v10, " "

    if-ge v5, v9, :cond_a

    .line 5
    :try_start_2
    invoke-virtual {v1, v6}, Lorg/apache/commons/net/ftp/FTPClient;->listFiles(Ljava/lang/String;)[Lorg/apache/commons/net/ftp/FTPFile;

    move-result-object v11

    if-eqz v11, :cond_8

    .line 6
    array-length v12, v11

    if-lez v12, :cond_8

    .line 7
    new-instance v3, Lcom/estrongs/fs/e;

    invoke-direct {v3, p1}, Lcom/estrongs/fs/e;-><init>(Ljava/lang/String;)V

    .line 8
    array-length p1, v11

    if-le p1, v2, :cond_2

    const/4 p1, 0x1

    goto :goto_1

    :cond_2
    const/4 p1, 0x0

    :goto_1
    iput-boolean p1, v3, Lcom/estrongs/fs/e;->c:Z

    if-eqz p1, :cond_4

    .line 9
    array-length p1, v11

    const/4 v5, 0x0

    :goto_2
    if-ge v5, p1, :cond_5

    aget-object v6, v11, v5

    .line 10
    invoke-virtual {v6}, Lorg/apache/commons/net/ftp/FTPFile;->isDirectory()Z

    move-result v6

    if-eqz v6, :cond_3

    .line 11
    iget v6, v3, Lcom/estrongs/fs/e;->e:I

    add-int/2addr v6, v2

    iput v6, v3, Lcom/estrongs/fs/e;->e:I

    goto :goto_3

    .line 12
    :cond_3
    iget v6, v3, Lcom/estrongs/fs/e;->f:I

    add-int/2addr v6, v2

    iput v6, v3, Lcom/estrongs/fs/e;->f:I

    :goto_3
    add-int/lit8 v5, v5, 0x1

    goto :goto_2

    .line 13
    :cond_4
    iput-object v7, v3, Lcom/estrongs/fs/e;->b:Ljava/lang/String;

    .line 14
    aget-object p1, v11, v4

    invoke-virtual {p1}, Lorg/apache/commons/net/ftp/FTPFile;->getSize()J

    move-result-wide v5

    iput-wide v5, v3, Lcom/estrongs/fs/e;->d:J

    .line 15
    :cond_5
    aget-object p1, v11, v4

    invoke-virtual {p1}, Lorg/apache/commons/net/ftp/FTPFile;->getTimestamp()Ljava/util/Calendar;

    move-result-object p1

    if-nez p1, :cond_6

    const-wide/16 v5, 0x0

    goto :goto_4

    :cond_6
    aget-object p1, v11, v4

    invoke-virtual {p1}, Lorg/apache/commons/net/ftp/FTPFile;->getTimestamp()Ljava/util/Calendar;

    move-result-object p1

    invoke-virtual {p1}, Ljava/util/Calendar;->getTimeInMillis()J

    move-result-wide v5

    :goto_4
    iput-wide v5, v3, Lcom/estrongs/fs/e;->i:J

    .line 16
    iput-boolean v4, v3, Lcom/estrongs/fs/e;->l:Z

    .line 17
    aget-object p1, v11, v4

    invoke-virtual {p1, v4, v4}, Lorg/apache/commons/net/ftp/FTPFile;->hasPermission(II)Z

    move-result p1

    iput-boolean p1, v3, Lcom/estrongs/fs/e;->j:Z

    .line 18
    aget-object p1, v11, v4

    invoke-virtual {p1, v4, v2}, Lorg/apache/commons/net/ftp/FTPFile;->hasPermission(II)Z

    move-result p1

    iput-boolean p1, v3, Lcom/estrongs/fs/e;->k:Z
    :try_end_2
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_2 .. :try_end_2} :catch_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    if-eqz v1, :cond_7

    .line 19
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_7
    return-object v3

    .line 20
    :cond_8
    :try_start_3
    invoke-virtual {v6, v10}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v11

    if-nez v11, :cond_9

    goto :goto_5

    .line 21
    :cond_9
    invoke-virtual {v6, v10, v8}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v6
    :try_end_3
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_3 .. :try_end_3} :catch_2
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    add-int/lit8 v5, v5, 0x1

    goto/16 :goto_0

    .line 22
    :cond_a
    :goto_5
    :try_start_4
    invoke-static {v3}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v5}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 23
    invoke-static {v3}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    const/4 v5, 0x0

    :goto_6
    if-ge v5, v9, :cond_12

    .line 24
    invoke-virtual {v1}, Lorg/apache/commons/net/ftp/FTPClient;->listFiles()[Lorg/apache/commons/net/ftp/FTPFile;

    move-result-object v6

    if-eqz v6, :cond_10

    .line 25
    array-length v11, v6

    if-lez v11, :cond_10

    .line 26
    new-instance v3, Lcom/estrongs/fs/e;

    invoke-direct {v3, p1}, Lcom/estrongs/fs/e;-><init>(Ljava/lang/String;)V

    .line 27
    array-length p1, v6

    if-le p1, v2, :cond_b

    const/4 p1, 0x1

    goto :goto_7

    :cond_b
    const/4 p1, 0x0

    :goto_7
    iput-boolean p1, v3, Lcom/estrongs/fs/e;->c:Z

    if-eqz p1, :cond_d

    .line 28
    array-length p1, v6

    const/4 v5, 0x0

    :goto_8
    if-ge v5, p1, :cond_e

    aget-object v7, v6, v5

    .line 29
    invoke-virtual {v7}, Lorg/apache/commons/net/ftp/FTPFile;->isDirectory()Z

    move-result v7

    if-eqz v7, :cond_c

    .line 30
    iget v7, v3, Lcom/estrongs/fs/e;->e:I

    add-int/2addr v7, v2

    iput v7, v3, Lcom/estrongs/fs/e;->e:I

    goto :goto_9

    .line 31
    :cond_c
    iget v7, v3, Lcom/estrongs/fs/e;->f:I

    add-int/2addr v7, v2

    iput v7, v3, Lcom/estrongs/fs/e;->f:I

    :goto_9
    add-int/lit8 v5, v5, 0x1

    goto :goto_8

    .line 32
    :cond_d
    iput-object v7, v3, Lcom/estrongs/fs/e;->b:Ljava/lang/String;

    .line 33
    aget-object p1, v6, v4

    invoke-virtual {p1}, Lorg/apache/commons/net/ftp/FTPFile;->getSize()J

    move-result-wide v7

    iput-wide v7, v3, Lcom/estrongs/fs/e;->d:J

    .line 34
    :cond_e
    aget-object p1, v6, v4

    invoke-virtual {p1}, Lorg/apache/commons/net/ftp/FTPFile;->getTimestamp()Ljava/util/Calendar;

    move-result-object p1

    .line 35
    invoke-virtual {p1}, Ljava/util/Calendar;->getTimeInMillis()J

    move-result-wide v7

    iput-wide v7, v3, Lcom/estrongs/fs/e;->i:J

    .line 36
    iput-boolean v4, v3, Lcom/estrongs/fs/e;->l:Z

    .line 37
    aget-object p1, v6, v4

    invoke-virtual {p1, v4, v4}, Lorg/apache/commons/net/ftp/FTPFile;->hasPermission(II)Z

    move-result p1

    iput-boolean p1, v3, Lcom/estrongs/fs/e;->j:Z

    .line 38
    aget-object p1, v6, v4

    invoke-virtual {p1, v4, v2}, Lorg/apache/commons/net/ftp/FTPFile;->hasPermission(II)Z

    move-result p1

    iput-boolean p1, v3, Lcom/estrongs/fs/e;->k:Z
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    if-eqz v1, :cond_f

    .line 39
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_f
    return-object v3

    .line 40
    :cond_10
    :try_start_5
    invoke-virtual {v3, v10}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v6

    if-nez v6, :cond_11

    goto :goto_a

    .line 41
    :cond_11
    invoke-virtual {v3, v10, v8}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v3
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_0
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    add-int/lit8 v5, v5, 0x1

    goto :goto_6

    :catch_0
    nop

    :cond_12
    :goto_a
    if-eqz v1, :cond_14

    goto :goto_e

    :catchall_0
    move-exception p1

    move-object v0, v1

    goto :goto_c

    :catch_1
    move-exception p1

    move-object v0, v1

    goto :goto_b

    :catch_2
    nop

    goto :goto_d

    :catchall_1
    move-exception p1

    goto :goto_c

    :catch_3
    move-exception p1

    .line 42
    :goto_b
    :try_start_6
    new-instance v1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v1, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v1
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_1

    :goto_c
    if-eqz v0, :cond_13

    .line 43
    invoke-direct {p0, v0}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    .line 44
    :cond_13
    throw p1

    :catch_4
    move-object v1, v0

    :goto_d
    if-eqz v1, :cond_14

    .line 45
    :goto_e
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_14
    return-object v0
.end method

.method public destroy()V
    .locals 7

    .line 1
    sget-object v0, Les/r80;->d:Ljava/util/HashMap;

    monitor-enter v0

    const/4 v1, 0x1

    .line 2
    :try_start_0
    sput-boolean v1, Les/r80;->b:Z

    .line 3
    sget-object v2, Les/r80;->d:Ljava/util/HashMap;

    invoke-virtual {v2}, Ljava/util/HashMap;->size()I

    move-result v2

    if-nez v2, :cond_0

    .line 4
    monitor-exit v0

    return-void

    .line 5
    :cond_0
    sget-object v2, Les/r80;->d:Ljava/util/HashMap;

    invoke-virtual {v2}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    .line 6
    :cond_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_5

    .line 7
    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/Map$Entry;

    .line 8
    invoke-interface {v3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/ArrayList;

    if-eqz v3, :cond_1

    const/4 v4, 0x0

    .line 9
    :goto_0
    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v5

    if-ge v4, v5, :cond_1

    .line 10
    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/r80$e;

    if-eqz v5, :cond_4

    .line 11
    iget-object v6, v5, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    if-eqz v6, :cond_4

    iget-object v6, v5, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    invoke-virtual {v6}, Lorg/apache/commons/net/SocketClient;->isConnected()Z

    move-result v6

    if-eqz v6, :cond_4

    .line 12
    iget-object v6, v5, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    instance-of v6, v6, Les/r80$b;

    if-eqz v6, :cond_2

    .line 13
    iget-object v6, v5, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    check-cast v6, Les/r80$b;

    iput-boolean v1, v6, Les/r80$b;->c:Z

    goto :goto_1

    .line 14
    :cond_2
    iget-object v6, v5, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    instance-of v6, v6, Les/r80$d;

    if-eqz v6, :cond_3

    .line 15
    iget-object v6, v5, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    check-cast v6, Les/r80$d;

    iput-boolean v1, v6, Les/r80$d;->c:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 16
    :cond_3
    :goto_1
    :try_start_1
    iget-object v6, v5, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    invoke-virtual {v6}, Lorg/apache/commons/net/ftp/FTPClient;->logout()Z
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 17
    :catch_0
    :try_start_2
    iget-object v5, v5, Les/r80$e;->a:Lorg/apache/commons/net/ftp/FTPClient;

    invoke-virtual {v5}, Lorg/apache/commons/net/ftp/FTPClient;->disconnect()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :catch_1
    :cond_4
    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 18
    :cond_5
    :try_start_3
    sget-object v1, Les/r80;->d:Ljava/util/HashMap;

    invoke-virtual {v1}, Ljava/util/HashMap;->clear()V

    .line 19
    monitor-exit v0

    return-void

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto :goto_3

    :goto_2
    throw v1

    :goto_3
    goto :goto_2
.end method

.method public e(Ljava/lang/String;)Z
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const-string v0, "/"

    const/4 v1, 0x0

    const/4 v2, 0x0

    .line 1
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x1

    .line 2
    invoke-virtual {p0, v3, v4}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v2
    :try_end_0
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v2, :cond_1

    if-eqz v2, :cond_0

    .line 3
    invoke-direct {p0, v2}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_0
    return v1

    .line 4
    :cond_1
    :try_start_1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 5
    invoke-virtual {p1, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_2

    .line 6
    invoke-virtual {v2, v3}, Lorg/apache/commons/net/ftp/FTPClient;->makeDirectory(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_6

    .line 7
    invoke-static {v3}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v2, p1}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 8
    invoke-static {v3}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v2, p1}, Lorg/apache/commons/net/ftp/FTPClient;->makeDirectory(Ljava/lang/String;)Z

    move-result v1

    goto :goto_0

    .line 9
    :cond_2
    invoke-virtual {v3, v0}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result p1

    add-int/2addr p1, v4

    invoke-virtual {v3, v1, p1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p1

    .line 10
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v5

    invoke-virtual {v3, v0, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    .line 11
    invoke-virtual {v2, p1}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 12
    invoke-virtual {v2, v0}, Lorg/apache/commons/net/ftp/FTPClient;->storeFileStream(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object p1

    if-eqz p1, :cond_3

    const/4 v1, 0x1

    :cond_3
    if-eqz p1, :cond_4

    .line 13
    invoke-virtual {p1}, Ljava/io/OutputStream;->close()V

    .line 14
    :cond_4
    instance-of p1, v2, Les/r80$b;

    if-eqz p1, :cond_5

    .line 15
    move-object p1, v2

    check-cast p1, Les/r80$b;

    iput-boolean v4, p1, Les/r80$b;->c:Z

    goto :goto_0

    .line 16
    :cond_5
    instance-of p1, v2, Les/r80$d;

    if-eqz p1, :cond_6

    .line 17
    move-object p1, v2

    check-cast p1, Les/r80$d;

    iput-boolean v4, p1, Les/r80$d;->c:Z
    :try_end_1
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :cond_6
    :goto_0
    if-eqz v2, :cond_8

    .line 18
    :goto_1
    invoke-direct {p0, v2}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    goto :goto_3

    :catchall_0
    move-exception p1

    goto :goto_2

    :catch_0
    move-exception p1

    .line 19
    :try_start_2
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :goto_2
    if-eqz v2, :cond_7

    .line 20
    invoke-direct {p0, v2}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    .line 21
    :cond_7
    throw p1

    :catch_1
    nop

    if-eqz v2, :cond_8

    goto :goto_1

    :cond_8
    :goto_3
    return v1
.end method

.method public exists(Ljava/lang/String;)Z
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const-string v0, "/"

    const/4 v1, 0x0

    const/4 v2, 0x0

    .line 1
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x1

    .line 2
    invoke-virtual {p0, v3, v4}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v2
    :try_end_0
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v2, :cond_1

    if-eqz v2, :cond_0

    .line 3
    invoke-direct {p0, v2}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_0
    return v1

    .line 4
    :cond_1
    :try_start_1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 5
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v3
    :try_end_1
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-ne v3, v4, :cond_3

    if-eqz v2, :cond_2

    .line 6
    invoke-direct {p0, v2}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_2
    return v4

    .line 7
    :cond_3
    :try_start_2
    invoke-virtual {p1, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_4

    .line 8
    invoke-virtual {p1, v0}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v0

    add-int/2addr v0, v4

    invoke-virtual {p1, v1, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    .line 9
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v3

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v5

    invoke-virtual {p1, v3, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    .line 10
    :cond_4
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v3

    sub-int/2addr v3, v4

    invoke-virtual {p1, v1, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3

    .line 11
    invoke-virtual {v3, v0}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v0

    add-int/2addr v0, v4

    invoke-virtual {v3, v1, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    .line 12
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v3

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v5

    invoke-virtual {p1, v3, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p1

    .line 13
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v3

    sub-int/2addr v3, v4

    invoke-virtual {p1, v1, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p1

    .line 14
    :goto_0
    invoke-virtual {v2, v0}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 15
    invoke-virtual {v2}, Lorg/apache/commons/net/ftp/FTPClient;->listNames()[Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_6

    const/4 v3, 0x0

    .line 16
    :goto_1
    array-length v5, v0

    if-ge v3, v5, :cond_6

    .line 17
    aget-object v5, v0, v3

    invoke-virtual {v5, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5
    :try_end_2
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_2 .. :try_end_2} :catch_1
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    if-eqz v5, :cond_5

    const/4 v1, 0x1

    goto :goto_2

    :cond_5
    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    :cond_6
    :goto_2
    if-eqz v2, :cond_8

    .line 18
    :goto_3
    invoke-direct {p0, v2}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    goto :goto_5

    :catchall_0
    move-exception p1

    goto :goto_4

    :catch_0
    move-exception p1

    .line 19
    :try_start_3
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :goto_4
    if-eqz v2, :cond_7

    .line 20
    invoke-direct {p0, v2}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    .line 21
    :cond_7
    throw p1

    :catch_1
    nop

    if-eqz v2, :cond_8

    goto :goto_3

    :cond_8
    :goto_5
    return v1
.end method

.method public f(Ljava/lang/String;)Lcom/estrongs/fs/g;
    .locals 12
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    .line 2
    invoke-virtual {p0, v1, v2}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v1
    :try_end_0
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_0 .. :try_end_0} :catch_4
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_3
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    if-nez v1, :cond_1

    if-eqz v1, :cond_0

    .line 3
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_0
    return-object v0

    .line 4
    :cond_1
    :try_start_1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 5
    invoke-virtual {v1, v2}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z
    :try_end_1
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_1 .. :try_end_1} :catch_2
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    const/4 v3, 0x0

    move-object v5, v2

    const/4 v4, 0x0

    :goto_0
    const-string v6, "\\ "

    const/4 v7, 0x2

    const-string v8, " "

    if-ge v4, v7, :cond_5

    .line 6
    :try_start_2
    invoke-virtual {v1, v5}, Lorg/apache/commons/net/ftp/FTPClient;->listFiles(Ljava/lang/String;)[Lorg/apache/commons/net/ftp/FTPFile;

    move-result-object v9

    if-eqz v9, :cond_3

    .line 7
    array-length v10, v9

    if-lez v10, :cond_3

    .line 8
    new-instance v2, Les/p80;

    aget-object v4, v9, v3

    aget-object v3, v9, v3

    invoke-virtual {v3}, Lorg/apache/commons/net/ftp/FTPFile;->getLink()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v4, p1, v3}, Les/p80;-><init>(Lorg/apache/commons/net/ftp/FTPFile;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_2
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_2 .. :try_end_2} :catch_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    if-eqz v1, :cond_2

    .line 9
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_2
    return-object v2

    .line 10
    :cond_3
    :try_start_3
    invoke-virtual {v5, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v9

    if-nez v9, :cond_4

    goto :goto_1

    .line 11
    :cond_4
    invoke-virtual {v5, v8, v6}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v5
    :try_end_3
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_3 .. :try_end_3} :catch_2
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 12
    :cond_5
    :goto_1
    :try_start_4
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 13
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x0

    :goto_2
    if-ge v5, v7, :cond_b

    .line 14
    invoke-virtual {v1}, Lorg/apache/commons/net/ftp/FTPClient;->listFiles()[Lorg/apache/commons/net/ftp/FTPFile;

    move-result-object v9

    if-eqz v9, :cond_8

    .line 15
    array-length v10, v9

    if-lez v10, :cond_8

    const/4 v10, 0x0

    .line 16
    :goto_3
    array-length v11, v9

    if-ge v10, v11, :cond_a

    .line 17
    aget-object v11, v9, v10

    invoke-virtual {v11}, Lorg/apache/commons/net/ftp/FTPFile;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v11, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v11

    if-eqz v11, :cond_7

    .line 18
    new-instance v2, Les/p80;

    aget-object v3, v9, v10

    aget-object v4, v9, v10

    invoke-virtual {v4}, Lorg/apache/commons/net/ftp/FTPFile;->getLink()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v2, v3, p1, v4}, Les/p80;-><init>(Lorg/apache/commons/net/ftp/FTPFile;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    if-eqz v1, :cond_6

    .line 19
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_6
    return-object v2

    :cond_7
    add-int/lit8 v10, v10, 0x1

    goto :goto_3

    .line 20
    :cond_8
    :try_start_5
    invoke-virtual {v2, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v9

    if-nez v9, :cond_9

    goto :goto_4

    .line 21
    :cond_9
    invoke-virtual {v2, v8, v6}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v2
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_0
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    :cond_a
    add-int/lit8 v5, v5, 0x1

    goto :goto_2

    :catch_0
    nop

    :cond_b
    :goto_4
    if-eqz v1, :cond_d

    goto :goto_8

    :catchall_0
    move-exception p1

    move-object v0, v1

    goto :goto_5

    :catch_1
    nop

    goto :goto_6

    :catch_2
    nop

    goto :goto_7

    :catchall_1
    move-exception p1

    :goto_5
    if-eqz v0, :cond_c

    .line 22
    invoke-direct {p0, v0}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    .line 23
    :cond_c
    throw p1

    :catch_3
    move-object v1, v0

    :goto_6
    if-eqz v1, :cond_d

    goto :goto_8

    :catch_4
    move-object v1, v0

    :goto_7
    if-eqz v1, :cond_d

    .line 24
    :goto_8
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_d
    return-object v0
.end method

.method public g(Ljava/lang/String;)Z
    .locals 8
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v0

    const/4 v1, 0x0

    .line 2
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x1

    .line 3
    invoke-virtual {p0, v2, v3}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v1
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const/4 v2, 0x0

    if-nez v1, :cond_1

    if-eqz v1, :cond_0

    .line 4
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_0
    return v2

    :cond_1
    if-eqz v0, :cond_3

    .line 5
    :try_start_1
    invoke-virtual {v0}, Les/s80;->z()Z

    move-result v4
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz v4, :cond_3

    if-eqz v1, :cond_2

    .line 6
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_2
    return v2

    .line 7
    :cond_3
    :try_start_2
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 8
    invoke-direct {p0, p1}, Les/r80;->l(Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_6

    .line 9
    invoke-virtual {v1, v4}, Lorg/apache/commons/net/ftp/FTPClient;->deleteFile(Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_5

    .line 10
    invoke-static {v4}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v5}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 11
    invoke-virtual {v1}, Lorg/apache/commons/net/ftp/FTP;->getReplyCode()I

    move-result v5

    const/16 v6, 0x226

    if-eq v5, v6, :cond_4

    .line 12
    invoke-static {v4}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Lorg/apache/commons/net/ftp/FTPClient;->deleteFile(Ljava/lang/String;)Z

    move-result v5

    goto :goto_0

    .line 13
    :cond_4
    new-instance p1, Ljava/io/IOException;

    const-string v0, "550"

    invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_5
    :goto_0
    if-eqz v0, :cond_7

    const/4 v4, 0x2

    new-array v4, v4, [Ljava/lang/Object;

    const-wide/16 v6, 0x1

    .line 14
    invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v6

    aput-object v6, v4, v2

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "ftp://"

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    aput-object p1, v4, v3

    invoke-virtual {v0, v3, v4}, Les/s80;->b(I[Ljava/lang/Object;)V

    goto :goto_1

    .line 15
    :cond_6
    invoke-direct {p0, v1, v4}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;Ljava/lang/String;)Z

    move-result v5
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :cond_7
    :goto_1
    if-eqz v1, :cond_8

    .line 16
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_8
    return v5

    :catchall_0
    move-exception p1

    goto :goto_2

    :catch_0
    move-exception p1

    .line 17
    :try_start_3
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :goto_2
    if-eqz v1, :cond_9

    .line 18
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    .line 19
    :cond_9
    throw p1
.end method

.method public h(Ljava/lang/String;)J
    .locals 12
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const-wide/16 v0, -0x1

    const/4 v2, 0x0

    .line 1
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x1

    .line 2
    invoke-virtual {p0, v3, v4}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v2
    :try_end_0
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_0 .. :try_end_0} :catch_2
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v2, :cond_1

    if-eqz v2, :cond_0

    .line 3
    invoke-direct {p0, v2}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_0
    return-wide v0

    .line 4
    :cond_1
    :try_start_1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 5
    invoke-virtual {v2, p1}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z
    :try_end_1
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_1 .. :try_end_1} :catch_2
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    const/4 v3, 0x0

    move-object v5, p1

    const/4 v4, 0x0

    :goto_0
    const-string v6, "\\ "

    const/4 v7, 0x2

    const-string v8, " "

    if-ge v4, v7, :cond_5

    .line 6
    :try_start_2
    invoke-virtual {v2, v5}, Lorg/apache/commons/net/ftp/FTPClient;->listFiles(Ljava/lang/String;)[Lorg/apache/commons/net/ftp/FTPFile;

    move-result-object v9

    if-eqz v9, :cond_3

    .line 7
    array-length v10, v9

    if-lez v10, :cond_3

    .line 8
    aget-object p1, v9, v3

    invoke-virtual {p1}, Lorg/apache/commons/net/ftp/FTPFile;->getSize()J

    move-result-wide v0
    :try_end_2
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_2 .. :try_end_2} :catch_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    if-eqz v2, :cond_2

    .line 9
    invoke-direct {p0, v2}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_2
    return-wide v0

    .line 10
    :cond_3
    :try_start_3
    invoke-virtual {v5, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v9

    if-nez v9, :cond_4

    goto :goto_1

    .line 11
    :cond_4
    invoke-virtual {v5, v8, v6}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v5
    :try_end_3
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_3 .. :try_end_3} :catch_2
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 12
    :cond_5
    :goto_1
    :try_start_4
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v4}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 13
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x0

    :goto_2
    if-ge v5, v7, :cond_b

    .line 14
    invoke-virtual {v2}, Lorg/apache/commons/net/ftp/FTPClient;->listFiles()[Lorg/apache/commons/net/ftp/FTPFile;

    move-result-object v9

    if-eqz v9, :cond_8

    .line 15
    array-length v10, v9

    if-lez v10, :cond_8

    const/4 v10, 0x0

    .line 16
    :goto_3
    array-length v11, v9

    if-ge v10, v11, :cond_a

    .line 17
    aget-object v11, v9, v10

    invoke-virtual {v11}, Lorg/apache/commons/net/ftp/FTPFile;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v11, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v11

    if-eqz v11, :cond_7

    .line 18
    aget-object p1, v9, v10

    invoke-virtual {p1}, Lorg/apache/commons/net/ftp/FTPFile;->getSize()J

    move-result-wide v0
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    if-eqz v2, :cond_6

    .line 19
    invoke-direct {p0, v2}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_6
    return-wide v0

    :cond_7
    add-int/lit8 v10, v10, 0x1

    goto :goto_3

    .line 20
    :cond_8
    :try_start_5
    invoke-virtual {p1, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v9

    if-nez v9, :cond_9

    goto :goto_4

    .line 21
    :cond_9
    invoke-virtual {p1, v8, v6}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p1
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_0
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    :cond_a
    add-int/lit8 v5, v5, 0x1

    goto :goto_2

    :catch_0
    nop

    :cond_b
    :goto_4
    if-eqz v2, :cond_d

    goto :goto_6

    :catchall_0
    move-exception p1

    goto :goto_5

    :catch_1
    move-exception p1

    .line 22
    :try_start_6
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    :goto_5
    if-eqz v2, :cond_c

    .line 23
    invoke-direct {p0, v2}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    .line 24
    :cond_c
    throw p1

    :catch_2
    nop

    if-eqz v2, :cond_d

    .line 25
    :goto_6
    invoke-direct {p0, v2}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_d
    return-wide v0
.end method

.method public i(Ljava/lang/String;)Ljava/io/InputStream;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const-wide/16 v0, 0x0

    .line 1
    invoke-virtual {p0, p1, v0, v1}, Les/r80;->a(Ljava/lang/String;J)Ljava/io/InputStream;

    move-result-object p1

    return-object p1
.end method

.method public j(Ljava/lang/String;)Z
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Les/r80;->l(Ljava/lang/String;)Z

    move-result p1

    return p1
.end method

.method public k(Ljava/lang/String;)Ljava/lang/String;
    .locals 1

    .line 1
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const/4 v0, 0x1

    .line 2
    invoke-virtual {p0, p1, v0}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object p1

    .line 3
    invoke-virtual {p1}, Lorg/apache/commons/net/ftp/FTPClient;->printWorkingDirectory()Ljava/lang/String;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    const/4 p1, 0x0

    return-object p1
.end method

.method public renameFile(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 1
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x1

    .line 2
    invoke-virtual {p0, v2, v3}, Les/r80;->a(Ljava/lang/String;Z)Lorg/apache/commons/net/ftp/FTPClient;

    move-result-object v1
    :try_end_0
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v1, :cond_1

    if-eqz v1, :cond_0

    .line 3
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    :cond_0
    return v0

    .line 4
    :cond_1
    :try_start_1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 5
    invoke-static {p2}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 6
    invoke-virtual {v1, p1, v2}, Lorg/apache/commons/net/ftp/FTPClient;->rename(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_2

    .line 7
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lorg/apache/commons/net/ftp/FTPClient;->changeWorkingDirectory(Ljava/lang/String;)Z

    .line 8
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 9
    invoke-static {p2}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    .line 10
    invoke-virtual {v1, p1, p2}, Lorg/apache/commons/net/ftp/FTPClient;->rename(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0
    :try_end_1
    .catch Lorg/apache/commons/net/ftp/FTPConnectionClosedException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :cond_2
    if-eqz v1, :cond_4

    .line 11
    :goto_0
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    goto :goto_2

    :catchall_0
    move-exception p1

    goto :goto_1

    :catch_0
    move-exception p1

    .line 12
    :try_start_2
    new-instance p2, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p2, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p2
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :goto_1
    if-eqz v1, :cond_3

    .line 13
    invoke-direct {p0, v1}, Les/r80;->a(Lorg/apache/commons/net/ftp/FTPClient;)V

    .line 14
    :cond_3
    throw p1

    :catch_1
    nop

    if-eqz v1, :cond_4

    goto :goto_0

    :cond_4
    :goto_2
    return v0
.end method
